# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=nodejs-less-plugin-clean-css
pkgver=1.5.1
pkgrel=0
pkgdesc="Post-process and compress CSS using clean-css"
url="https://github.com/less/less-plugin-clean-css"
arch="noarch !mips !mips64" # blocked by nodejs
license="MIT"
depends="nodejs"
makedepends="npm nodejs-less nodejs-clean-css"
source="https://registry.npmjs.org/less-plugin-clean-css/-/less-plugin-clean-css-$pkgver.tgz"
options="!check"
builddir="$srcdir/package"

unpack() {
	# skipping unpacking, installing archive directly
	verify
}

package() {
	npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/less-plugin-clean-css-$pkgver.tgz
	chown -R root "$pkgdir"
}

sha512sums="3dcebc0051c01093b7680a11be75135b9880880bfacbe4d0b162d34f054daa38839e8eb10afc73d40b5f425ed8d0c652a473da9456a3335114e1107951520da7  less-plugin-clean-css-1.5.1.tgz"
